import api from '@/service/api';

type Params = {
  imgUrl: string;
  name: string;
  classify: string;
  describe?: string;
};

type Output = {
  id: string;
}

export default (params: Params) => {
  return api.post('/api/image/image/create', params) as Promise<Output>;
}
